package edu.umd.mhealth.views;

import org.achartengine.GraphicalView;


import android.content.Context;
import android.view.View;

public class GraphFactory {
	public static final GraphicalView getHistoryGraph(Context context, double[] series1, double[] series2, Graph type){	
		GraphicalView historyGraph = null;
		
		switch(type){
		case CALORIES: 
			historyGraph = CalorieHistoryView.getGraph(context, series1, series2);
			break;
		case WEIGHT:
			
			break;
		//case STEPS:
			//historyGraph = StepsHistoryView(context, series1, series2);
			//break;
		case BLOOD_PRESSURE:
			historyGraph =  BloodPressureHistoryView.getGraph(context, series1, series2);
			break;
		}
		
		return historyGraph;
	}
	
	/*public static final View getGraph(Context context, double[] series, Graph type){
		View view = null;
		
		switch(type){
		case CALORIES: 
			view =  CalorieView.getView(context, series);
			break;
		case WEIGHT:
			view = WeightView.getView(context, series);
			break;
		case STEPS:
			view =  StepsView.getView(context, series);
			break;
		case BLOOD_PRESSURE:
			view =  BloodPressureView.getView(context, series);
			break;
		}
		
		return view;
	}*/
}
